-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Geo variogram #98
Geo variogram #98
Conversation
Now, variogram estimation can be performed for geo-coordinates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking about the geo-coord support recently and I think, it would be the easiest way to provide a converter function latlon2xyz
that takes a radius
argument. Then we only have to provide a set of good tutorials on how to deal with geo-coord and we don't need to rewrite all the routines.
Only thing we need is a new option in the fit_variogram
method or another method called fit_yadrenko
to fit a 3D model to the estimated great-circle variogram where a radius can be passed to have a meaningful length scale.
@LSchueler : What do you think?
pow(sin(diff_lon/2.0), 2) | ||
) | ||
# earth radius for WGS84 ellipsoid r ~ 6371km | ||
return 12742000.0 * atan2(sqrt(arg), sqrt(1.0-arg)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use the great-circle distance in deg
as the result, so we don't have to deal with the earth radius. This is also done in Pykrige this way ATM. Then we also don't have to care about km
vs m
and leave this decision to the user.
this is now made obsolete by #113 |
A first step towards supporting spherical coordinate systems #54 is to support variogram estimation on spherical coordinate systems.
This is a first proposal for calculating unstructured variograms on spheres.
A few things to discuss:
spherical
a good name for the argument in the functionvario_estimate_unstructured
?great-circle
estimator.pyx
into one of thetools.py
namespacestools.pyx
as a more general Cython code collectionlatlon2xyz
SRF
,CovModel
andKrige
classesdeg
and leave this decision to the user